<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%><%@ include file="/include.inc.jsp"%>
<style type="text/css">
	th,td{
		text-align:left;
	}
</style>
<script type="text/javascript">
	var editor="";
	editor = KindEditor.create('#content',{
		  filterMode : false,
		  resizeType : 1,
		  resizeMode :1,
		  allowPreviewEmoticons : false,
		  allowUpload : true,
		  allowImageUpload : true,
		  width:'100%',
		  items: ['source', '|', 'undo', 'redo', '|', 'preview', 'print', 'template', 'code', 'cut', 'copy', 'paste',
		        'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
		        'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
		        'superscript', 'clearhtml', 'quickformat', 'selectall', '|', 'fullscreen', '/',
		        'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
		        'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image', 'multiimage',
		        'flash', 'media', 'insertfile', 'table', 'hr', 'emoticons', 'baidumap', 'pagebreak',
		        'anchor', 'link', 'unlink', '|', 'about'],
		  uploadJson : server + '/fileUpload/editorUpload?m='+Math.random(),
		  afterBlur : function() {
			  this.sync();
		  },
	 });
</script>
<div class="bjui-pageContent">
<form method="post" action="${path}/article/save" class="pageForm"  data-toggle="validate" data-reload-navtab="true">
	<input name="article.id" value="${article.id}" type="hidden"/>
	<div class="pageFormContent" data-layout-h="0">
	    <div class="suggestion">
            <span class="sugicon"><span class="strong colorgorning2">当前操作提示：</span><span class="colorgorningage">请在以下窗口中输入文章信息</span></span>
        </div>
        <table class="table table-condensed table-hover" data-width="100%">
	    	<tbody>
	        	<tr>
	            	<td><label for="j_role_add_name" class="control-label x85">名称</label>
	                	<input type="text" data-rule="required" class="required" name="article.name" value="${article.name}">
	                </td>
	            </tr>
	            <tr>
	            	<td><label for="j_role_add_name" class="control-label x85">排序</label>
	                	<input type="text" data-rule="required" class="required" name="article.sortx" value="${article.sortx}">
	                </td>
	            </tr>
	            <tr>
	            	<td><label for="j_role_add_name" class="control-label x85">状态</label>
	                	<input type="radio" name="article.status" data-toggle="icheck" value="0" <c:if test="${article.status == 0}"> checked="checked" </c:if> data-rule="checked" data-label="未发布&nbsp;&nbsp;">
                        <input type="radio" name="article.status" data-toggle="icheck" value="1" <c:if test="${article.status == 1}"> checked="checked" </c:if> data-label="已发布">
	                </td>
	            </tr>
	            <%-- <tr>
	            	<td><label for="j_role_add_name" class="control-label x85">内容</label>
	                	<textarea id="content" name="article.content" data-toggle="kindeditor" data-uploadJson="${path}/fileUpload" data-items="'source', '|', 'undo', 'redo', '|', 'preview', 'print', 'template', 'code', 'cut', 'copy', 'paste',
						    'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
						    'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
						    'superscript', 'clearhtml', 'quickformat', 'selectall', '|', 'fullscreen', '/',
						    'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
						    'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image', 'multiimage',
						    'flash', 'media', 'insertfile', 'table', 'hr', 'emoticons', 'baidumap', 'pagebreak',
						    'anchor', 'link', 'unlink', '|', 'about'">
	                		${article.content}
	                	</textarea>
	                </td>
	            </tr> --%>
	            <tr>
	            	<td>
	            		<textarea id="content" name="article.content" style="height:360px;">${article.content}</textarea>
	            	</td>
	            </tr>
	        </tbody>
        </table>
	</div>
	<div class="bjui-footBar" style="text-align: center;">
		<ul style="margin-left: 40%">
			<li style="float: left"><div class="buttonActive"><div class="buttonContent"><button  type="submit" class="btn-default" data-icon="save" >确认保存</button></div></div></li>
			<li style="float: left"><div class="button"><div class="buttonContent"><button type="button" class="btn-close" data-icon="close" >取消保存</button></div></div></li>
		</ul>
	</div>
</form>
</div>
